package cn.edu.sdjzu.xg.kcsj.domain;

import lombok.*;

import java.io.Serializable;

@Setter
@Getter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public final class StudentClass  implements Comparable<StudentClass>, Serializable {
    private Integer id;
    private String name;
    private String no;
    public StudentClass(int id, String name,String no){
        this. id = id;
        this.name = name;
        this.no = no;
    }
    @Override
    public int compareTo(StudentClass other) {
        // no为排序依据
        return this.no.compareTo(other.no);
    }

}
